package dao;

import java.util.List;
import javax.persistence.Query;
import entity.Subjects;


public class SubjectsDao extends BaseDao<Subjects> {
	
	public static SubjectsDao INSTANCE = new SubjectsDao();
	
	private SubjectsDao() {}

	@SuppressWarnings("unchecked")
	public List<Subjects> findAll() {
		Query query = em.createNamedQuery("Subjects.findAll");
		return query.getResultList();
	}

}
